package com.qxf.util;

public enum StatisticType {

	MEDIA(0),
	AD(1);
	
	private int index;
	
	StatisticType(int index) {
		this.index = index;
	}
	
	public int getIndex() {
		return index;
	}

	public static StatisticType getType(int index) {
		for(int i=0; i<StatisticType.values().length; i++) {
			if(StatisticType.values()[i].index == index) {
				return StatisticType.values()[i];
			}
		}
		return null;
	}
}
